forum

home / developersection / forums / how to jquery toggle switch gives null on document ready

How to Jquery toggle switch gives null on document ready

Anonymous User 1962 01-Feb-2015

Hi Im using jquery ui toggleswitch toggleswitch.js

how can i get on /off value on document ready

i'm using this code on document ready

   $(document).ready(function () {
     alert($('.ui-state-active').html());
   }

it gives null but when i use firebug console and run it gives value of on/off by running this code below.

$('.ui-state-active').html()

there is not much documentation of this widget can anybody help?

 


Updated on 01-Feb-2015

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By